
//自动给父节点添加子节点并加上class名字
function myAppendChildClass(father,sonType,className,innerContent){
    var son = document.createElement(sonType);
    son.className = className;
    son.innerHTML = innerContent;
    father.appendChild(son);
    return son;
}


/*弹出窗口*/
var missions = document.getElementById("missions");
var missionForm = document.getElementsByClassName("missionForm");
var elasticFrame = document.getElementById("elasticFrame");
var closeBtn = document.getElementById("closeBtn");
var show = document.getElementById("mission");
var showP = mission.getElementsByTagName("p");
for(var i = 0;i < missionForm.length;i++){
    missionBind(missionForm[i],show,elasticFrame);
}
closeBtn.onclick = function(){
    elasticFrame.style.display = "none";
    document.body.style.overflow = "";
    show.removeChild(show.lastChild);
};